using System;
using Microsoft.SPOT;
using System.Net;
using DaaseVarmer.webserver.framework;
using DaaseVarmer.domain;
using System.Collections;


namespace DaaseVarmer.webserver.impl
{
    class RequestHandler : IRequestHandler
    {
        private IHTMLFactory _htmlFac;

        public RequestHandler()
        {
            _htmlFac = new HTMLFactory();
        }

        public byte[] GetResponse(HttpListenerRequest req)
        {
            return System.Text.Encoding.UTF8.GetBytes(_htmlFac.GetHtmlResponse());
        }
    }
}
